#ifndef CCLIENTBOOK_H
#define CCLIENTBOOK_H

#include "socket\protocol\gps.h"
#include "inetworking.h"

class CClientBook : public INetWorking
{
public:
    CClientBook(QObject *parent = 0);
    ~CClientBook();

public:
    virtual void prepareWriteData(QByteArray* block, void* param);
    virtual bool prepareReadData(QTcpSocket *pTcpSocket, protocal::BasePtc *basePtc);
    virtual void formResult();

private:
    //out
    char  userID[10];
    protocal::GPS startGPS;
    protocal::GPS endGPS;
    short waitingTime; //minutes

    //in
    QString car_id;
    QString licence_plate;
    QString driver_name;
    QString company;
    short honest_degree;
    short arrive_time; // in minutes
    protocal::GPS taxiPosition;
};

#endif // CCLIENTBOOK_H
